﻿CREATE TRIGGER CommitteeBankAccountDepositAttachments_Tracking_Delete
ON [dbo].[CommitteeBankAccountDepositAttachments] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.CommitteeBankAccountDepositAttachments_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.CommitteeBankAccountDepositAttachments_Tracking s JOIN DELETED i
    ON s.CommitteeBankAccountDepositAttachmentID = i.CommitteeBankAccountDepositAttachmentID
END











